# 安装requests
# pip install requests
# pip install -i https://pypi.tuna.tsinghua.edu.cn/simple requests
import requests

query = input("请输入一个你喜欢的明星")
url = f'https://www.sogou.com/web?query={query}'

dic = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36"}
resp = requests.get(url, headers=dic)
resp.close()
print(resp)
print(resp.text)
